﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YhmOA.IDAL;
using YhmOA.Model;

namespace YhmOA.EFDAL
{
    public class ManagerOA_Menu_TopMenuDAL : IManagerOA_Menu_TopMenuDAL
    {
        private Entities entities;

        public ManagerOA_Menu_TopMenuDAL()
        {
            entities = new Entities(typeof(ManagerOA_Menu_TopMenu));
        }

        /// <summary>
        /// 调整顶部菜单的顺序
        /// </summary>
        /// <param name="ID">要调整的ID</param>
        /// <param name="BeforeOrAfter">向前还是向后（1标示向前，0标示向后）</param>
        public void TopMenuOrder(int ID, int BeforeOrAfter)
        {
            entities.TopMenuOrder(ID, BeforeOrAfter);
        }
    }
}
